home *** CD-ROM | disk | FTP | other *** search
- local l m IFS
- IFS="\n"
- while 1;read l;if eof(0);break;elseif l!=m;echo $l;m=l;endif;endwhile
- # Uniq - a filter to compress consecutive identical lines to a single line.
- # This script version has no args, and only reads standard input. This
- # should be easy to modify -- see the 'head' filter.
- #
- # Uniq is presented as is; no warrantee is either expressed or implied
- # as to it's suitability to any purpose whatsoever. You assume all the
- # risk for all damage, even if caused by a defect in the software,
- # no matter how awful.
-